package com.chuanke.ckfamily.service.finance;

import com.chuanke.ckfamily.dao.finance.model.UserDayIncome;
import com.chuanke.ckfamily.service.exception.CFException;
import com.weijie.core.IBaseBiz;

public interface UserDayIncomeService extends IBaseBiz<UserDayIncome> {
	/**
	 * 用户增加的每日收益
	 *
	 * @param channel 渠道
	 * @param uid 用户id
	 * @param money 金额
	 * @param date 日期
	 */
	void addUserIncome(Long channel, Long uid, Long money, String date) throws CFException;

	/**
	 * 查找用户指定日期的收益情况
	 *
	 * @param uid
	 * @param date
	 * @return
	 */
	UserDayIncome findUserDayIncome(Long uid, String date) throws CFException;

	/**
	 * 查询用户是否分享过文章
	 * 
	 * @param uid
	 * @param date
	 * @return
	 */
	Boolean isDayUserShared(Long uid, String date);
}